#ifndef __SINGLETON_H__
#define __SINGLETON_H__

template <class T>
class Singleton
{
public:
    static T* GetInstance()
    {
        static T v;
        return &v;
    }
};

#endif // !__SINGLETON_H__